
include ../Makefile.Res
Version:=2.5.2
ModuleName:=Python

Object:=python.tgz
ObjectDir:=$(ModuleName)-$(Version)
ObjectSource:=$(ModuleName)-$(Version).tar.gz

DependFiles:=

ExtModuleNames:=

InstallDir:=/usr/local/python

Config:=--prefix=$(InstallDir) --disable-shared --disable-ipv6 --disable-toolbox-glue \
	--without-pydebug --without-system-ffi \
	--without-signal-module --without-pth --without-doc-strings --without-tsc --without-pymalloc 

.PHONY: all clean dist_clean

null:

all:$(Object) 

$(Object):$(ObjectSource) 
	tar -xzf $(ObjectSource)
	cd $(ObjectDir);./configure $(Config)
	$(MAKE) -C $(ObjectDir)
	$(MAKE) -C $(ObjectDir) install DESTDIR=`pwd`/
	rm -rf 	usr/local/python/share \
		usr/local/python/include \
		usr/local/python/lib/python2.5/test \
		usr/local/python/lib/python2.5/config
	rm -rf `find usr -name *.pyc`
	rm -rf `find usr -name *.pyo`
	tar -czf $(Object) usr

clean:
	rm -rf usr

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjectSource) *.tar.gz $(Object)
	
